import request  from  '@/utils/request.js'
// 获取角色列表
export const reqGetRoleList = (page, limit, keyWord)=>{
    return request({url: `/admin/acl/role/${page}/${limit}?roleName=${keyWord}`, method: 'get'})
}

// 保存添加角色
export const reqSaveRole=(data)=>{
    return request({url: "/admin/acl/role/save", method:'post', data})
}

// 更新角色名称
export const reqUpdateRole = (data)=>{
    return request({url:'/admin/acl/role/update', method:'put',data})
}

// 删除角色
export const reqDeleteRole = (id)=>{
    return request({url: `/admin/acl/role/remove/${id}`, method: 'delete'})
}